<?php echo $this->Session->flash(); ?>
<table  id="tabla"  >
    <thead>
        <tr>
            <th>Id</th>
            <th>Descripción</th>
            <th colspan="2"></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($condiciones as $condicion): ?>
            <tr>
                <td><?php echo $condicion['EvaluationConstraint']['id'] ?></td> 
                <td><?php echo $condicion['EvaluationConstraint']['descripcion'] ?></td>
                <td><?php if ($condicion['FinalEvaluation']['cerrado'] == 0 AND $this->Session->read('estado') == 0) echo $ajax->link('Editar', array('controller' => 'EvaluationConstraints', 'action' => 'edit_observations', $condicion['EvaluationConstraint']['id']), array('class' => 'actions', 'update' => 'observations', 'indicator' => 'loading', 'escape' => false)); ?></td>
                <td><?php if ($condicion['FinalEvaluation']['cerrado'] == 0 AND $this->Session->read('estado') == 0) echo $ajax->link('Eliminar', array('controller' => 'EvaluationConstraints', 'action' => 'delete_observations', $condicion['EvaluationConstraint']['id'], $evaluation_id), array('class' => 'actions', 'update' => 'observations', 'indicator' => 'loading', 'escape' => false), '¿Realmente desea eliminar el registro?'); ?></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<br>
<?php if ($this->Session->read('estado') == 0) echo $ajax->link('Adicionar', array('controller' => 'EvaluationConstraints', 'action' => 'add_observations', $evaluation_id), array('class' => 'actions', 'update' => 'observations', 'indicator' => 'loading', 'escape' => false)); ?>
              
